package com.wfl.sampling.dao;

import com.wfl.sampling.entity.GroupChatDo;
import com.wfl.sampling.entity.GroupMessageDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface GroupChatDao {
    //创建群聊关系
    void createGroupChat(GroupChatDo groupChatDo);
    //维护群聊人员
    void createGroupChatWithMember(GroupChatDo groupChatDo);
    //搜索下一次表名自增的id
    Integer selectCurrentAutoId();
    //保存会话
    void saveConversionMessage(Integer userId, Integer groupId,String message);
    //查询群聊对话消息
    ArrayList<GroupMessageDo> selectGroupMessage(Integer groupId);
}
